package com.sugon.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @Author YuXD
 * @Version 1.0
 * @since 2023/1/5
 */
@ApiModel("处理设备维护项参数")
@Data
public class HandleDevMaintenanceOptionParam implements Serializable {

    @NotEmpty(message = "维护工单维护项ID不能为空！")
    @ApiModelProperty(value = "设备维护工单维护项ID", required = true)
    private String devMaintenanceOptionId;

    @ApiModelProperty(value = "检测结果，是否存在异常  0:无异常 1:有异常", required = true)
    @NotNull(message = "*检测结果必填！")
    private Integer checkResult;

    @NotEmpty(message = "维护现场照片必须上传！")
    @ApiModelProperty(value = "工单现场照片列表", required = true)
    private List<String> liveImageList;

}
